$(function () {
    // 搜索
    $('.buygame .search .button').click(function () {
        var gamename = $('.buygame .search .text').val();
        $('.buygame .search form').attr('action', 'buygame?gamename=' + gamename);
        $('.buygame .search form').submit();
    });
});